
/**
 * Ban / Pick 界面出现
 * 一般一开始出现的时候放的是队标, 过一会儿出现 BP 的板子
 */
const EVENT_SHOW = '/panel/show';
/**
 * Ban / Pick 界面隐藏
 */
const EVENT_HIDE = '/panel/hide';
/**
 * 这个 panel 上面显示啥, 是出队标, 两边都出
 */
const EVENT_TEAM_SHOW = '/team/show';
const EVENT_TEAM_HIDE = '/team/hide';
/**
 * 这个 panel 上面显示啥, 是 PICK 板子
 * 
 * 参数是
 *   seats: string[]
 */
const EVENT_PICK_SHOW = '/seat/pick/show';
const EVENT_PICK_HIDE = '/seat/pick/hide';
/**
 * 这个 panel 上面显示啥, 是 BAN 板子, 两边都出
 */
const EVENT_BAN_SHOW = '/seat/ban/show';
const EVENT_BAN_HIDE = '/seat/ban/hide';
/**
 * 主要是中间的 avatar 下面的部分显示什么
 * 
 * 附带参数:
 *   content: string
 *            'patch'  表示显示 PATCH 11.19 差不多的文字
 *            'battle' 表示显示两队和比分
 */
const EVENT_PANEL_CONTENT = '/panel/content';
/**
 * 时间轴重置
 * 
 * 附带参数:
 *   ms: number 倒计时的 ms 数最大值. 当前值它自己会查
 */
const EVENT_TIMER_RESET = '/timer/reset';
/**
 * 时间轴暂停
 * 
 * 附带参数:
 *   pause: boolean 暂停:true, 恢复:false
 */
const EVENT_TIMER_PAUSE = '/timer/pause';
/**
 * 指谁. 如果不指任何位置, 设置为 seats = empty list 即可
 * 
 * 参数是
 *   seats: string[]
 */
const EVENT_ARROW = '/arrow/update';
/**
 * 确定某个框显示哪个英雄. 如果不显示任何英雄, hero = '' 即可
 * 
 * 参数是
 *   seat: string
 *   hero: string
 */
const EVENT_SEAT = '/seat/update';
/**
 * 某个 PICK 框确定选好了
 * 
 * 参数是
 *   seats: string[]
 */
const EVENT_COMPLETE = '/seat/complete';
/**
 * 某个 PICK 框显示以往的 BP 率
 * 
 * 参数是
 *   seats: string[]
 */
const EVENT_SEAT_INFO_SHOW = '/seat/info/show';
const EVENT_SEAT_INFO_HIDE = '/seat/info/hide';

/**
 * 文本啥的重置或改写
 */
const EVENT_ASSET_RELOAD = '/panel/assets/reload';


const seats = {
  ban: {
    left:  ["BL1", "BL2", "BL3", "BL4", "BL5"],
    right: ["BR1", "BR2", "BR3", "BR4", "BR5"],
  },
  pick: {
    left:  ["PL1", "PL2", "PL3", "PL4", "PL5"],
    right: ["PR1", "PR2", "PR3", "PR4", "PR5"],
  },
}




export {
  EVENT_SHOW, EVENT_HIDE, EVENT_PANEL_CONTENT, EVENT_ASSET_RELOAD,
  EVENT_TEAM_SHOW, EVENT_TEAM_HIDE, EVENT_PICK_SHOW, EVENT_PICK_HIDE, EVENT_BAN_SHOW, EVENT_BAN_HIDE,
  EVENT_TIMER_RESET, EVENT_TIMER_PAUSE,
  EVENT_ARROW, EVENT_SEAT, EVENT_COMPLETE, EVENT_SEAT_INFO_SHOW, EVENT_SEAT_INFO_HIDE,
  seats
};

